Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
Java
1) 2D Graphics GUI
2) 3D Graphics
3) Advanced Graphics
4) Ant
5) Apache Common
6) Applet
7) Awt
8) Beginners Lab
9) Chart
10) Class
11) Collections Data Structure
12) Core
13) Data Type
14) Database SQL JDBC
15) Date Time
16) Design Pattern
17) Development Class
18) EJB3
19) Email
20) Event
21) File Input Output
22) Game
23) Generics
24) GWT
25) Hibernate
26) Internationalization
27) J2EE
28) J2ME
29) JDBC
30) JDK
31) JNDI LDAP
32) JPA
33) JSP
34) JSTL
35) Language Basics
36) Learning
37) Mathematics
38) Network Protocol
39) PDF RTF
40) Reflection
41) Regular Expressions
42) Scripting
43) Security
44) Servlets
45) Session
46) Sound
47) Spring
48) Swing Components
49) Swing JFC
50) SWT Jface Eclipse
51) Threads
52) Tiny Application
53) Util
54) Velocity
55) Web Services SOA
56) XML
Class
1) A changeable wrapper class
2) A Cloning Example
3) A collection of utilities to workaround limitations of Java clone framework
4) A companion class to modify immutable objects
5) A constructor for copying an object of the same
6) A named inner class is used to
7) Access inner class from outside
8) Accessing its enclosing instance from an inner class
9) Accessing Outer Class Variables
10) An example of a simple anonymous class
11) An inner class cannot be overriden like a method
12) Anonymous inner class
13) Array To String
14) Arrays are automatically cloneable
15) Blank final fields
16) Calling constructors with this
17) Can you call a static method of an abstract class
18) Checking to see if a reference can be cloned
19) Class Casting Demo
20) Class is declared to be cloneable
21) Cleanup and inheritance
22) Clone an object with clone method from parent
23) Clone demo
24) Clone objects
25) Clone Via Serialization
26) Cloning a composed object
27) Combining composition and inheritance
28) Compares two objects for equality, where either one or both objects may be null
29) Comparing Object Values Using Hash Codes
30) Compiler will generate a synthetic constructor since SyntheticConstructor() is private
31) Composition for code reuse
32) Composition with public objects
33) Constructor calls during inheritance
34) Constructor initialization with composition
35) Constructors and polymorphism dont produce what you might expect
36) Constructors can have arguments
37) Constructs pretty string representation of object value
38) Create a new instance of a class by calling a constructor with arguments
39) Create a Singleton Object
40) Create Object Demo
41) Creating a constructor for an anonymous inner class
42) Creating a Deep Copy
43) Creating inner classes
44) Creating instances of inner classes
45) Creating local copies with clone
46) Declaring Variables
47) Deep clone Object
48) Deep clone serializingde-serializng Clone
49) Deep Copy Test
50) Deep-copies the values from one object to the other
51) Demonstrate an Inner Child class
52) Demonstrate simple inner class
53) Demonstrate toString() without an override
54) Demonstrates Reference objects
55) Demonstrates the transient keyword
56) Demonstration of a simple constructor
57) Demonstration of both constructor and ordinary method overloading
58) Demonstration of cloning
59) Demonstration of overriding fields
60) Demotion of primitives and overloading
61) Downcasting and Run-Time Type Identification (RTTI)
62) Equals Method
63) Equals(Equal) Method
64) Equivalence
65) Equivalence ClassSet
66) Examination of the way the class loader works
67) Experiment with final args to functions
68) Explicit static initialization with the static clause
69) Extending an interface with inheritance
70) Get classpath using System class
71) Get the identity hash codes
72) Gets the toString of an Object returning an empty string () if null input
73) Gets the toString that would be produced by Object if a class did not override toString itself
74) Go through a few gyrations to add cloning to your own class
75) Holds a sequence of Objects
76) If the given objects are equal
77) Implements a pool of internalized objects
78) Inheritance syntax and properties
79) Inheritance, constructors and arguments
80) Inheriting an inner class
81) Initialization block Demo
82) Initialization order
83) It only looks like you can override a private or private final method
84) Java Final variable
85) Java Instance Initialization
86) Java static member variable example
87) Java static method
88) Just to show that there is no such thing as inner methods in Java
89) Lookup Classpath Files
90) Main method
91) Making an entire class final
92) Manipulate properties after clone operation
93) Method override demo
94) Nested Class Static
95) Nested classes can access all members of all levels of the classes they are nested within
96) Nesting a class within a scope
97) Null Safe To String
98) Object Deep copy
99) Objects that cannot be modified are immune to aliasing
100) Order of constructor calls
101) Overloaded constructor
102) Overloaded method
103) Overloading a base-class method name in a derived class does not hide the base-class versions
104) Overloading based on the order of the arguments
105) Override Shape
106) Passing objects to methods may not be what youre used to
107) Paying attention to exceptions in constructors
108) Polymorphism in Java
109) Promotion of primitives and overloading
110) Proper inheritance of an inner class
111) Putting test code in a nested class
112) Reflection based toString() utilities
113) Returning a reference to an inner class
114) Returns a copy of the object, or null if the object cannot be serialized
115) Returns a reference to a file with the specified name that is located somewhere on the classpath
116) Serializable and clone
117) Serializable Clone
118) Shallow Copy Test
119) Shared array
120) Show a class that has a method and a field with the same name
121) Show Constructors conflicting
122) Show that if your class has no constructors, your superclass constructors still get called
123) Show that you cant have static variables in a method
124) Show that you do inherit static fields
125) ShowToString -- demo program to show default toString methods
126) Simple demo of avoiding side-effects by using Object clone
127) Simple use of the this keyword
128) Specifying initial values in a class definition
129) Static field, constructor and exception
130) Static Init Demo
131) Static Initialization block
132) Subclass definition
133) Test the equality of two object arrays
134) Tests cloning to see if destination of references are also cloned
135) The clone operation works for only a few items in the standard Java library
136) The effect of final on fields
137) The full process of initialization
138) The protected keyword
139) This file is to show what happens if you try to access an inner class created in another class
140) This program demonstrates abstract classes
141) This program demonstrates anonymous inner classes
142) This program demonstrates cloning
143) This program demonstrates inheritance
144) This program demonstrates object construction
145) This program demonstrates parameter passing in Java
146) This program demonstrates static methods
147) This program demonstrates the equals method
148) This program demonstrates the use of inner classes
149) This program demonstrates the use of local inner classes
150) This program demonstrates the use of static inner classes
151) This program tests the Employee class
152) This shows off the uses of this
153) Tick Tock with an Anonymous Class
154) To show that certain things really must be initialized
155) To String Demo
156) ToString -- demo program to show a toString method
157) ToString(Object[] array)
158) Use a generic toString()
159) Uses serialization to perform deep copy cloning
160) Using final with method arguments
161) Using inner classes for callbacks
162) Using Static Variables
163) Utility for object cloning
164) Visibility
165) With concrete or abstract classes, inner classes are the only way to produce the effect
166) You can insert Cloneability at any level of inheritance